#include<iostream>
using namespace std;

int main()
{ int j,i,nr,v[10];
  cout<<"nr=";
  cin>>nr;

i=1;
while(nr!=0)
{v[i]=nr%2;
 nr=nr/2;
 i=i+1;
}

for(j=1;j<i;j++)
 cout<<v[j]<<" ";

}

